﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;

namespace SSTU.Model
{
	public class PeriodicWeek
	{
		public PeriodicWeek()
		{
			Days = null;
		}

		public PeriodicWeek(PeriodicWeekType type, IEnumerable<PeriodicWeekDay> days = null)
		{
			Type = type;
			if (days != null)
			{
				Days = new List<PeriodicWeekDay>();
				Days.AddRange(days);
			}
		}

		/// <summary>
		/// Gets or sets the type of the week.
		/// </summary>
		public PeriodicWeekType Type { get; set; }

		/// <summary>
		/// Gets or sets the days.
		/// </summary>
		public List<PeriodicWeekDay> Days { get; set; }
	}
}
